import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import DeliveryCode from '../views/DeliveryCode.vue'
import AppointmentEntry from '../views/AppointmentEntry.vue'
import QRCode from '../views/QRCode.vue'
import Profile from '../views/Profile.vue'
import AppointmentRecord from '../views/AppointmentRecord.vue'
import RegistrationInfo from '../views/RegistrationInfo.vue'
import WeighingInquiry from '../views/WeighingInquiry.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/delivery-code',
    name: 'DeliveryCode',
    component: DeliveryCode
  },
  {
    path: '/appointment-entry',
    name: 'AppointmentEntry',
    component: AppointmentEntry
  },
  {
    path: '/qr-code',
    name: 'QRCode',
    component: QRCode
  },
  {
    path: '/profile',
    name: 'Profile',
    component: Profile
  },
  {
    path: '/appointment-record',
    name: 'AppointmentRecord',
    component: AppointmentRecord
  },
  {
    path: '/registration-info',
    name: 'RegistrationInfo',
    component: RegistrationInfo
  },
  {
    path: '/weighing-inquiry',
    name: 'WeighingInquiry',
    component: WeighingInquiry
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router